

package AddressBook.Model;

/**
 * This class define the authorized file extension which could be opened and saved
 */
public abstract class AuthorizedFileExtension {
    /**
     * This field stores a string representation of the csv extension
     */
    public final static String CSV_EXTENSION = "csv";
    /**
     * This field stores a string representation of the ser extension
     */
    public final static String SER_EXTENSION = "ser";

    /**
     * This method returns the dotted string representation of the csv extension
     * @return The dotted representation
     */
    public static String getDottedCsvExtension() {
        return "." + CSV_EXTENSION;
    }

    /**
     * This method returns the dotted string representation of the ser extension
     * @return The dotted representation
     */
    public static String getDottedSerExtension() {
        return "." + SER_EXTENSION;
    }
}
